<template>
  <el-col>
    <el-menu
      router
      :default-active="route.path"
      class="el-menu-vertical-demo"
    >
      <el-menu-item index="/index/index">
        <template #title>
          <el-icon>
            <HomeFilled />
          </el-icon>
          <span>首页</span>
        </template>
      </el-menu-item>
      <el-menu-item index="/index/category">
        <template #title>
          <el-icon>
            <WalletFilled />
          </el-icon>
          <span>分类管理</span>
        </template>
      </el-menu-item>

      <el-menu-item index="/index/goods">
        <template #title>
          <el-icon>
            <WalletFilled />
          </el-icon>
          <span>商品管理</span>
        </template>
      </el-menu-item>
      <el-menu-item index="/index/person">
        <template #title>
          <el-icon>
            <Setting />
          </el-icon>
          <span>个人中心</span>
        </template>
      </el-menu-item>
    </el-menu>
  </el-col>
</template>

<script setup>
  import { useRoute } from 'vue-router'
  const route = useRoute()
</script>

<style scoped></style>
